package Com.amit.Exception;

import java.io.IOException;

public class Lab16 {

	void m3()
	{
		throw new IOException("Device error");
	}
	
	void m2()
	{
		m3();
	}
	
	void m1()
	{
		m2();
	}
	
	void m()
	{
		try
		{
			m1();
		}
		catch (Exception e) {
			System.out.println("Exception handled");
		}
	}
	
	public static void main(String[] args) {
		
		Lab16 l=new Lab16();
		
		l.m();
		
		System.out.println("Rest code");
	
	
	}

}
